const routes = [
  {
    path: '/:pathMatch(.*)*',
    component: ()=>import('@/views/notfound/NotFound.vue'),
  },
  {
    path: '/',
    redirect: '/index',
  },
  {
    path: '/index',
    component: ()=>import('@/views/main/home/Home.vue'),
  },
  {
    path: '/center',
    component: ()=>import('@/views/main/center/Center.vue'),
  },
  {
    path:'/user-manager/addUser',
    component:()=>import('@/views/main/user-manager/UserAdd.vue')
  },
  {
    path:'/user-manager/userList',
    component:()=>import('@/views/main/user-manager/UserList.vue')
  },
  {
    path:'/news-manager/addNews',
    component:()=>import('@/views/main/news-manager/NewsAdd.vue')
  },
  {
    path:'/news-manager/newsList',
    component:()=>import('@/views/main/news-manager/NewsList.vue')
  },
  {
    path:'/product-manager/addProduct',
    component:()=>import('@/views/main/product-manager/ProductAdd.vue')
  },
  {
    path:'/product-manager/productList',
    component:()=>import('@/views/main/product-manager/ProductList.vue')
  },
]

export default routes